<?php

namespace App\Http\Controllers\Backend;


use App\Models\SiteInfo;

class SiteInfoController extends BaseController
{

    // 话题
    public function initialize()
    {
        parent::initialize();

        $this->model = 'SiteInfo';
    }

    // 父级
    // 添加，修改，删除，列表，停用 操作

    // 修改
    public function onContent()
    {
        $manage = $this->checkManage($this->model);
        if($manage === false){
            return $this->error($manage->getError());
        }

        $result = $manage->onEdit();
        if($result === false){
            return $this->error($manage->getError());
        }

        return $this->success();
    }

}


